<script type="text/javascript">
function clearPanels() {
	$('panelProfessional').style.display = 'none';
	$('panelParent').style.display = 'none';
}
function togglePanel(panel) {
	if (panel == 0) {
		$('panelParent').style.display = 'none';
		$('panelProfessional').style.display = 'none';
	} else {
		var panelID = $('panel'+panel);
		clearPanels();
		if (panelID.style.display == 'none') {
			panelID.style.display = '';
		} else {
			panelID.style.display = 'none';
		}
	}
}
function renderErrorMessage(message) {
	$('errorMessage').style.display = '';
	$('errorMessage').innerHTML = message;
}
function validateForm() {
	if ($('nameFirst').value == '') {
		renderErrorMessage('You must enter your first name.')
		return false;
	}
	if ($('nameLast').value == '') {
		renderErrorMessage('You must enter your last name.')
		return false;
	}
	if ($('address').value == '') {
		renderErrorMessage('You must enter your mailing address.')
		return false;
	}
	if ($('city').value == '') {
		renderErrorMessage('You must enter your city.')
		return false;
	}
	return true;
}
</script>